package com.mzj.saas.mservice.community.repository;

import com.mzj.saas.mservice.community.entity.CommunityBuild;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface CommunityBuildRepository extends PagingAndSortingRepository<CommunityBuild,Long>, JpaSpecificationExecutor<CommunityBuild> {
    List<CommunityBuild> findByCommunityId(String communityId);

    List<CommunityBuild> findByCommunityIdOrderByName(String communityId);

    List<CommunityBuild> findByCommunityIdIn(List<String> communityId);

    List<CommunityBuild> findByIdIn(List<Long> ids);

    int countByCommunityId(String communityId);

    List<CommunityBuild> findByCommunityIdAndName(String communityId,String name);

}
